import { nullDisplay } from '../utils'
// 文本组件设置
export default {
  props: {
    value: [String, Number],
    options: Object
  },
  render(h) {
    if (this.value === null) {
      return nullDisplay(h, this.options)
    }
    return h(
      'div',
      {
        attrs: this.options
      },
      this.value.toString()
    )
  }
}
